900
How can I prevent a link to end to a specified bar
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.AllowLinkBars = true;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,160);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Not-End-Linkable");
	var_Items.AddBar(h,"Unknown",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanEndLink,false);
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
exg2antt1.EndUpdate();

899
How can I prevent a link to start from a specified bar
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.AllowLinkBars = true;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,160);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Not-Start-Linkable");
	var_Items.AddBar(h,"Unknown",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanStartLink,false);
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
exg2antt1.EndUpdate();

898
How can I prevent a specified bar to be linked
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.AllowLinkBars = true;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,160);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Not-Linkable");
	var_Items.AddBar(h,"Unknown",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanBeLinked,false);
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
exg2antt1.EndUpdate();

897
How can I display in the chart's header only days where the week starts

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Label = "<%mmmm%> <%yyyy%>";
		var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exMonth;
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
		var_Level1.FormatLabel = " (0:=weekday(dvalue)) = 1 ? '<b>' +value : '' ";
	var_Chart.UnitWidth = 23;

896
Is there any automatically way to display and change the bar's duration in the columns section

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Duration") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,513);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

895
How can I programatically move or resize a bar using spin or slider controls in the columns

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.ShowEmptyBars = 1;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

894
I am trying to call the ItemBar(exBarStart) after curent ending point, and the bar is not updated. What I am doing wrong
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,64);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.ShowEmptyBars = 1;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Test");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),var_Items.get_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEnd),null,null);
exg2antt1.EndUpdate();

893
How can change in the same time the starting and ending points of the bar
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,64);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.ShowEmptyBars = 1;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Test");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exontrol.EXG2ANTTLib.Items var_Items1 = exg2antt1.Items;
	h = var_Items1.FirstVisibleItem;
	var_Items1.AddBar(h,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

892
How can I control the exBarEffort property of the bar using slider controls

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.ShowFocusRect = false;
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
(exg2antt1.Columns.Add("Tasks") as exontrol.EXG2ANTTLib.Column).AllowDragging = false;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Histogram") as exontrol.EXG2ANTTLib.Column);
	var_Column.AllowDragging = false;
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column.PartialCheck = true;
	var_Column.AllowSizing = false;
	var_Column.Width = 18;
	var_Column.LevelKey = 1;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("Effort") as exontrol.EXG2ANTTLib.Column);
	var_Column1.LevelKey = 1;
	var_Column1.AllowDragging = false;
	var_Column1.AllowSizing = false;
	var_Column1.Width = 64;
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,21);
	exontrol.EXG2ANTTLib.Editor var_Editor = var_Column1.Editor;
		var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SliderType;
		var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderWidth,-100);
		var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderMax,9);
		var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderMin,1);
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 3;
	var_Chart.NonworkingDays = 0;
	var_Chart.set_PaneWidth(false,160);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = (exontrol.EXG2ANTTLib.HistogramViewEnum)0x10000 | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramRecLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
	var_Chart.HistogramHeight = 64;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramCriticalColor = Color.FromArgb(255,0,0);
		var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exBezierCurve;
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project 1");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellEditorVisible(h,2,exontrol.EXG2ANTTLib.EditorVisibleEnum.exEditorHidden);
	var_Items.set_CellValue(h,2,"");
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"");
	h1 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,5);
	h1 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_CellState(h,1,1);
	h = var_Items.AddItem("Project 2");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("3/7/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellEditorVisible(h,2,exontrol.EXG2ANTTLib.EditorVisibleEnum.exEditorHidden);
	var_Items.set_CellValue(h,2,"");
	h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("7/3/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/8/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"");
	h1 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("7/5/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,5);
	h1 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("7/7/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/8/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_CellState(h,1,1);
exg2antt1.EndUpdate();

891
How can I determine if there is any Redo operation
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.AllowUndoRedo = true;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
bool var_CanRedo = exg2antt1.Chart.CanRedo;

890
How can I determine if there is any Undo operation
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.AllowUndoRedo = true;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
bool var_CanUndo = exg2antt1.Chart.CanUndo;

889
How can I turn on the Undo/Redo feature
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.AllowUndoRedo = true;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);

888
How can I disable resizing the histogram at runtime
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exDisableHistogram;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 32;
	var_Chart.Bars["Task"].HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);

887
How can I display automatically the start and end dates of the bars in the columns section

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = true;
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,196);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

886
How can I enable Undo/Redo support
exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exHLines;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Column.LevelKey = 1;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Column1.LevelKey = 1;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exHLines;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = true;
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,196);
	var_Chart.AllowUndoRedo = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

885
Is there any option to update the bar's properties once the cell's value is changed ( associate the cell with bar )

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.MarkSearchColumn = false;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	(var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
	(var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column).Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
	var_Columns.Add("Info");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = false;
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,224);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.InsertItem(null,null,"Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","Caption");
	var_Items.set_ItemBar(h1,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	var_Items.get_CellEditor(h1,3).EditType = exontrol.EXG2ANTTLib.EditTypeEnum.EditType;
	var_Items.CellValueToItemBar(h1,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarStart,"A");
	var_Items.CellValueToItemBar(h1,2,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEnd,"A");
	var_Items.CellValueToItemBar(h1,3,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"A");
	int h2 = var_Items.InsertItem(null,null,"Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	exontrol.EXG2ANTTLib.Editor var_Editor = var_Items.get_CellEditor(h2,3);
		var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SliderType;
		var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderWidth,-100);
	var_Items.CellValueToItemBar(h2,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarStart,"B");
	var_Items.CellValueToItemBar(h2,2,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEnd,"B");
	var_Items.CellValueToItemBar(h2,3,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarTransparent,"B");
	int h3 = var_Items.InsertItem(null,null,"Task 3");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C",null);
	exontrol.EXG2ANTTLib.Editor var_Editor1 = var_Items.get_CellEditor(h3,3);
		var_Editor1.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DropDownType;
		var_Editor1.AddItem(0,"Task",null);
		var_Editor1.AddItem(1,"Progress",null);
		var_Editor1.AddItem(2,"Project Summary",null);
		var_Editor1.AddItem(2,"Summary",null);
	var_Items.CellValueToItemBar(h3,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarStart,"C");
	var_Items.CellValueToItemBar(h3,2,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEnd,"C");
	var_Items.CellValueToItemBar(h3,3,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarName,"C");
exg2antt1.EndUpdate();

884
Is there any option to update the bar's properties once the cell's value is changed ( associate the column/cell with bars )

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.Indent = 11;
exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exSolidLine;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Column.LevelKey = 1;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Column1.LevelKey = 1;
	exontrol.EXG2ANTTLib.Column var_Column2 = (var_Columns.Add("Transparency") as exontrol.EXG2ANTTLib.Column);
		var_Column2.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,19);
		exontrol.EXG2ANTTLib.Editor var_Editor = var_Column2.Editor;
			var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SliderType;
			var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderWidth,-100);
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = false;
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,224);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellEditorVisible(h,1,exontrol.EXG2ANTTLib.EditorVisibleEnum.exEditorHidden);
	var_Items.set_CellEditorVisible(h,2,exontrol.EXG2ANTTLib.EditorVisibleEnum.exEditorHidden);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h2 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h3 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.DefineSummaryBars(h,"",h2,"");
	var_Items.DefineSummaryBars(h,"",h3,"");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_ItemBold(h,true);
exg2antt1.EndUpdate();

883
How can I group two bars so I can specify the range or the limit of the interval between them

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Columns.Add("Tasks");
(exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).Visible = false;
(exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project");
	var_Items.set_CellValue(h,1,Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h,"Summary",var_Items.get_CellValue(h,1),var_Items.get_CellValue(h,2),"sum",null);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.set_CellValue(h1,1,var_Items.get_CellValue(h,1));
	var_Items.set_CellValue(h1,2,Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h1,"Task",var_Items.get_CellValue(h1,1),var_Items.get_CellValue(h1,2),"K1",null);
	int h2 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.set_CellValue(h2,1,var_Items.get_CellValue(h1,2));
	var_Items.set_CellValue(h2,2,Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h2,"Unknown",var_Items.get_CellValue(h2,1),var_Items.get_CellValue(h2,2),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	int h3 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.set_CellValue(h3,1,var_Items.get_CellValue(h2,2));
	var_Items.set_CellValue(h3,2,var_Items.get_CellValue(h,2));
	var_Items.AddBar(h3,"Task",var_Items.get_CellValue(h3,1),var_Items.get_CellValue(h3,2),"K3",null);
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.GroupBars(h1,"K1",false,h2,"K2",true,31,"0;4");
	var_Items.GroupBars(h2,"K2",false,h3,"K3",true,31,"0;2");
	var_Items.DefineSummaryBars(h,"sum",h1,"K1");
	var_Items.DefineSummaryBars(h,"sum",h2,"K2");
	var_Items.DefineSummaryBars(h,"sum",h3,"K3");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_ItemBold(h,true);
exg2antt1.EndUpdate();

882
How can I group my bars so I can resize the interval between them but still keep the lengths of them

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Columns.Add("Tasks");
(exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).Visible = false;
(exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project");
	var_Items.set_CellValue(h,1,Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h,"Summary",var_Items.get_CellValue(h,1),var_Items.get_CellValue(h,2),null,null);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.set_CellValue(h1,1,var_Items.get_CellValue(h,1));
	var_Items.set_CellValue(h1,2,Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h1,"Task",var_Items.get_CellValue(h1,1),var_Items.get_CellValue(h1,2),null,null);
	int h2 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.set_CellValue(h2,1,var_Items.get_CellValue(h1,2));
	var_Items.set_CellValue(h2,2,Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h2,"Unknown",var_Items.get_CellValue(h2,1),var_Items.get_CellValue(h2,2),null,null);
	var_Items.AddLink("L1",h1,"",h2,"");
	int h3 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.set_CellValue(h3,1,var_Items.get_CellValue(h2,2));
	var_Items.set_CellValue(h3,2,var_Items.get_CellValue(h,2));
	var_Items.AddBar(h3,"Task",var_Items.get_CellValue(h3,1),var_Items.get_CellValue(h3,2),null,null);
	var_Items.AddLink("L2",h2,"",h3,"");
	var_Items.GroupBars(h1,"",false,h2,"",true,35,null);
	var_Items.GroupBars(h2,"",false,h3,"",true,35,null);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.DefineSummaryBars(h,"",h2,"");
	var_Items.DefineSummaryBars(h,"",h3,"");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_ItemBold(h,true);
exg2antt1.EndUpdate();

881
Can I group my bars so they move together when a bar inside changes, but still preserving the length of the bars

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Columns.Add("Tasks");
(exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).Visible = false;
(exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project");
	var_Items.set_CellValue(h,1,Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h,"Summary",var_Items.get_CellValue(h,1),var_Items.get_CellValue(h,2),null,null);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.set_CellValue(h1,1,var_Items.get_CellValue(h,1));
	var_Items.set_CellValue(h1,2,Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h1,"Task",var_Items.get_CellValue(h1,1),var_Items.get_CellValue(h1,2),null,null);
	int h2 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.set_CellValue(h2,1,var_Items.get_CellValue(h1,2));
	var_Items.set_CellValue(h2,2,Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h2,"Unknown",var_Items.get_CellValue(h2,1),var_Items.get_CellValue(h2,2),null,null);
	var_Items.AddLink("L1",h1,"",h2,"");
	int h3 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.set_CellValue(h3,1,var_Items.get_CellValue(h2,2));
	var_Items.set_CellValue(h3,2,var_Items.get_CellValue(h,2));
	var_Items.AddBar(h3,"Task",var_Items.get_CellValue(h3,1),var_Items.get_CellValue(h3,2),null,null);
	var_Items.AddLink("L2",h2,"",h3,"");
	var_Items.GroupBars(h1,"",false,h2,"",true,3,null);
	var_Items.GroupBars(h2,"",false,h3,"",true,3,null);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.DefineSummaryBars(h,"",h2,"");
	var_Items.DefineSummaryBars(h,"",h3,"");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_ItemBold(h,true);
exg2antt1.EndUpdate();

880
How can I split the time scale, so a section displays days, while other displays weeks, and the other months

exg2antt1.BeginUpdate();
exg2antt1.HeaderHeight = 24;
exg2antt1.Columns.Add("Default");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.DrawDateTicker = true;
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exVLines;
	var_Chart.NonworkingDays = 0;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 3;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Label = "<%yyyy%>";
		var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exYear;
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level1.Label = "<%hy%>";
		var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exHalfYear;
		var_Level1.set_ReplaceLabel("1","<b>1/2</b>");
		var_Level1.set_ReplaceLabel("2","<b>2/2</b>");
	exontrol.EXG2ANTTLib.Level var_Level2 = var_Chart.get_Level(2);
		var_Level2.Label = "<%mmm%>";
		var_Level2.Unit = exontrol.EXG2ANTTLib.UnitEnum.exMonth;
	var_Chart.UnitWidth = 28;
	var_Chart.AllowInsideZoom = true;
	exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.OwnerLabel = "<b><%mmmm%></b> (weeks) ";
		var_InsideZoomFormat.InsideLabel = "<font ;6>W: <b><%ww%></b>";
		var_InsideZoomFormat.InsideUnit = exontrol.EXG2ANTTLib.UnitEnum.exWeek;
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		exontrol.EXG2ANTTLib.InsideZoom var_InsideZoom = var_InsideZooms.Add(Convert.ToDateTime("1/1/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
			var_InsideZoom.AllowCustomFormat = true;
			exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat1 = var_InsideZoom.CustomFormat;
				var_InsideZoomFormat1.OwnerLabel = "<b><%mmmm%></b> (weeks) ";
				var_InsideZoomFormat1.InsideLabel = "<font ;6>W: <b><%ww%></b>";
				var_InsideZoomFormat1.InsideUnit = exontrol.EXG2ANTTLib.UnitEnum.exWeek;
				var_InsideZoomFormat1.BackColorChart = Color.FromArgb(187,231,240);
		exontrol.EXG2ANTTLib.InsideZoom var_InsideZoom1 = var_InsideZooms.Add(Convert.ToDateTime("3/1/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
			var_InsideZoom1.AllowCustomFormat = true;
			var_InsideZoom1.Width = 356;
			exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat2 = var_InsideZoom1.CustomFormat;
				var_InsideZoomFormat2.OwnerLabel = "<b><%mmmm%></b> (days) ";
				var_InsideZoomFormat2.InsideLabel = "<font ;5><%d%></font>";
				var_InsideZoomFormat2.InsideUnit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
				var_InsideZoomFormat2.BackColorChart = Color.FromArgb(145,200,240);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1 ");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/12/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("3/9/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/25/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("3/12/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Task 3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("2/1/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/8/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("2/8/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/15/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("2/15/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/22/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B3",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("2/22/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/28/2007",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B4",null);
exg2antt1.EndUpdate();

879
How can I define a bar that shows two colors, one up and one down, without using skin or EBN files

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Bar var_Bar = exg2antt1.Chart.Bars.Add("A");
	var_Bar.Color = Color.FromArgb(255,0,0);
	var_Bar.Shape = exontrol.EXG2ANTTLib.ShapeBarEnum.exShapeSolidUp;
	var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
exontrol.EXG2ANTTLib.Bar var_Bar1 = exg2antt1.Chart.Bars.Add("B");
	var_Bar1.Color = Color.FromArgb(128,0,0);
	var_Bar1.Shape = exontrol.EXG2ANTTLib.ShapeBarEnum.exShapeSolidDown;
	var_Bar1.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
exg2antt1.Chart.Bars.Add("A%B").Shortcut = "AB";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"AB",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarPercent,1);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanResizePercent,false);
exg2antt1.EndUpdate();

878
Does your control support RightToLeft property for RTL languages or right to left
exg2antt1.BeginUpdate();
exg2antt1.ScrollBars = exontrol.EXG2ANTTLib.ScrollBarsEnum.exDisableBoth;
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("P1") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column.PartialCheck = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);
exg2antt1.RightToLeft = true;
exg2antt1.EndUpdate();

877
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
exg2antt1.BeginUpdate();
exg2antt1.ScrollBars = exontrol.EXG2ANTTLib.ScrollBarsEnum.exDisableBoth;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("C1");
	var_Columns.Add("C2");
	var_Columns.Add("C3");
	var_Columns.Add("C4");
	var_Columns.Add("C5");
	var_Columns.Add("C6");
	var_Columns.Add("C7");
	var_Columns.Add("C8");
exg2antt1.RightToLeft = true;
exg2antt1.EndUpdate();

876
Can I display the cell's check box after the text
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Column") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellDrawPartsOrder,"caption,check");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_CellHasCheckBox(var_Items.AddItem("Caption 1"),0,true);
	var_Items.set_CellHasCheckBox(var_Items.AddItem("Caption 2"),0,true);

875
Can I change the order of the parts in the cell, as checkbox after the text, and so on
exg2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
(exg2antt1.Columns.Add("Column") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellDrawPartsOrder,"caption,check,icon,icons,picture");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Text");
	var_Items.set_CellImage(h,0,1);
	var_Items.set_CellHasCheckBox(h,0,true);

874
Can I have an image displayed after the text. Can I get that effect without using HTML content
exg2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
(exg2antt1.Columns.Add("Column") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellDrawPartsOrder,"caption,icon,check,icons,picture");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Text");
	var_Items.set_CellImage(h,0,1);

873
My problem is that I want to mark the cells from every second item in the gant with a other backgroundcolor

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/17/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exSecond;
	var_Chart.get_Level(1).FormatLabel = "(0:=sec(dvalue)) mod 2 ? 0=: : '<bgcolor=00FF00>' + 0=:";

872
Is there any option to print the columns section on each page

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Col 1");
exg2antt1.Columns.Add("Col 2");
exg2antt1.MarkSearchColumn = false;
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Col 1");
	var_Items.set_CellValue(h1,1,"Col 2");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Col 1");
	var_Items.set_CellValue(h2,1,"Col 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("2/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkStartPos,0);
exg2antt1.EndUpdate();
// Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint();
	var_Print.Options = "ColumnsOnEveryPage=-2";
	var_Print.PrintExt = (exg2antt1 as exontrol.EXG2ANTTLib.exg2antt);
	var_Print.Preview();

871
How can I add a different non-working area for different items

exg2antt1.Columns.Add("Non-Work");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/24/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,52);
	var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("January");
	var_Items.set_ItemNonworkingUnits(h,false,"month(value) = 1");
	h = var_Items.AddItem("February, Saturday, Sunday");
	var_Items.set_ItemNonworkingUnits(h,false,"month(value) = 2 or (weekday(value) = 0 or weekday(value) = 6)");
	h = var_Items.AddItem("Sunday");
	var_Items.set_ItemNonworkingUnits(h,false,"weekday(value) = 0");

870
How can I define different non-working units for different items

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,78);
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
	var_Chart.LevelCount = 3;
	var_Chart.get_Level(1).DrawGridLines = false;
	var_Chart.AllowInsideZoom = true;
	var_Chart.DrawDateTicker = true;
	var_Chart.DateTickerLabel = "<%mmm%> <%d%><br><b><%hh%>:<%nn%></b>";
	var_Chart.MarkSelectDateColor32 = 0x7ffff8ee;
	exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.OwnerLabel = "<%mmm%> <%d%>";
		var_InsideZoomFormat.BackColor = Color.FromArgb(238,248,255);
		var_InsideZoomFormat.BackColorChart = var_InsideZoomFormat.BackColor;
		var_InsideZoomFormat.InsideCount = 4;
		var_InsideZoomFormat.InsideLabel = "<b><%hh%></b>";
	var_Chart.InsideZooms.Add(Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exVLines;
	var_Chart.Bars["Split"].Color = Color.FromArgb(255,0,0);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Add("Task:Split");
		var_Bar.Color = Color.FromArgb(255,0,0);
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
		var_Bar.Shortcut = "TaskS";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project 1");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"TaskS",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemNonworkingUnits(h1,false,"weekday(value)=1 or weekday(value)=2");
	var_Items.set_ItemNonworkingUnits(h1,true,"weekday(value)=1 or weekday(value)=2 or (hour(value)<8 or hour(value)>=16 )");
	var_Items.DefineSummaryBars(h,"",h1,"");
	h1 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h1,"TaskS",Convert.ToDateTime("6/22/2005 4:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"E",null);
	var_Items.set_ItemNonworkingUnits(h1,false,"weekday(value)=0");
	var_Items.set_ItemNonworkingUnits(h1,true,"weekday(value)=0 or hour(value)<4 or hour(value)>19");
	var_Items.DefineSummaryBars(h,"",h1,"E");
	var_Items.set_ItemBar(h1,"E",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,5);
	h1 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h1,"TaskS",Convert.ToDateTime("6/22/2005 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"E",null);
	var_Items.set_ItemNonworkingUnits(h1,false,"weekday(value)=1 or weekday(value)=2");
	var_Items.set_ItemNonworkingUnits(h1,true,"weekday(value)=1 or weekday(value)=2 or (hour(value)<8 or hour(value)>=16 )");
	var_Items.DefineSummaryBars(h,"",h1,"E");
	var_Items.set_ExpandItem(h,true);
	h = var_Items.AddItem("Project 2");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/6/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h1 = var_Items.InsertItem(h,null,"TaskS 1");
	var_Items.AddBar(h1,"TaskS",Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.DefineSummaryBars(h,"",h1,"");
	h1 = var_Items.InsertItem(h,null,"TaskS 2");
	var_Items.AddBar(h1,"TaskS",Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/6/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"E",null);
	var_Items.DefineSummaryBars(h,"",h1,"E");
	var_Items.set_ItemBar(h1,"E",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,5);
	h1 = var_Items.InsertItem(h,null,"TaskS 3");
	var_Items.AddBar(h1,"TaskS",Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"E",null);
	var_Items.DefineSummaryBars(h,"",h1,"E");
	var_Items.set_ExpandItem(h,true);
exg2antt1.EndUpdate();

869
I want to define/highlight for specified dates as being non-working. Is this possible

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Items");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.NonworkingDaysColor = Color.FromArgb(255,0,0);
	var_Chart.set_PaneWidth(false,48);
	ULong c = var_Chart.NonworkingDaysColor;
	exontrol.EXG2ANTTLib.PatternEnum p = var_Chart.NonworkingDaysPattern;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Add("NW");
		var_Bar.Color = c;
		var_Bar.Pattern = p;
		var_Bar.Height = -1;
		var_Bar.Shape = exontrol.EXG2ANTTLib.ShapeBarEnum.exShapeSolidFrameless;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.AddBar(h,"NW",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"0",null);
	var_Items.set_ItemBar(h,"0",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelectable,false);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	h = var_Items.AddItem("Item 2");
	var_Items.AddBar(h,"NW",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"0",null);
	var_Items.set_ItemBar(h,"0",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelectable,false);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
exg2antt1.EndUpdate();

868
Do you have any sample how can I programmatically magnify a single date, so can show the hours, while the rest of the chart displays days

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.ShowFocusRect = false;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("C") as exontrol.EXG2ANTTLib.Column);
	var_Column.HeaderAlignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column.PartialCheck = true;
	var_Column.AllowSizing = false;
	var_Column.Width = 18;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,96);
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
	var_Chart.LevelCount = 3;
	var_Chart.get_Level(1).DrawGridLines = false;
	var_Chart.AllowInsideZoom = true;
	var_Chart.DrawDateTicker = true;
	var_Chart.DateTickerLabel = "<%mmm%> <%d%><br><b><%hh%>:<%nn%></b>";
	var_Chart.MarkSelectDateColor32 = 0x7ffff8ee;
	exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.OwnerLabel = "<%mmm%> <%d%>";
		var_InsideZoomFormat.BackColor = Color.FromArgb(238,248,255);
		var_InsideZoomFormat.BackColorChart = var_InsideZoomFormat.BackColor;
		var_InsideZoomFormat.InsideCount = 4;
		var_InsideZoomFormat.InsideLabel = "<b><%hh%></b>";
	var_Chart.InsideZooms.Add(Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exVLines;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project 1");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"");
	h1 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"E",null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"E");
	var_Items.set_ItemBar(h1,"E",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,5);
	h1 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"E",null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"E");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_CellState(h,1,1);
	h = var_Items.AddItem("Project 2");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/6/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"");
	h1 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/6/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"E",null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"E");
	var_Items.set_ItemBar(h1,"E",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,5);
	h1 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"E",null);
	var_Items.set_CellMerge(h1,0,1);
	var_Items.DefineSummaryBars(h,"",h1,"E");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_CellState(h,1,1);
exg2antt1.EndUpdate();

867
How can I define my own/custom labels and subdivisions

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.ToolTip = "";
	var_Chart.set_PaneWidth(false,0);
	var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exStartDate,0);
	var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exEndDate,110);
	var_Chart.FirstVisibleDate = 0;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.MarkTodayColor = var_Chart.BackColor;
	var_Chart.LevelCount = 3;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.ToolTip = "";
		var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
		var_Level.Count = 16;
		var_Level.FormatLabel = "'Group <b>'+int(1 +dvalue/16)";
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.ToolTip = "";
		var_Level1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
		var_Level1.Count = 4;
		var_Level1.FormatLabel = " (abs(dvalue)/4) mod 4";
		var_Level1.set_ReplaceLabel("0","Sub-Group <b>1</b>");
		var_Level1.set_ReplaceLabel("1","Sub-Group <b>2</b>");
		var_Level1.set_ReplaceLabel("2","Sub-Group <b>3</b>");
		var_Level1.set_ReplaceLabel("3","Sub-Group <b>4</b>");
	exontrol.EXG2ANTTLib.Level var_Level2 = var_Chart.get_Level(2);
		var_Level2.ToolTip = "";
		var_Level2.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
		var_Level2.Count = 1;
		var_Level2.FormatLabel = "(abs(dvalue) mod 4)";
		var_Level2.set_ReplaceLabel("0","A");
		var_Level2.set_ReplaceLabel("1","B");
		var_Level2.set_ReplaceLabel("2","C");
		var_Level2.set_ReplaceLabel("3","D");
exg2antt1.EndUpdate();

866
I want to mark or highlight the last Friday of the month. Is there any option to do that

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/17/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.get_Level(1).FormatLabel = "(weekday(dvalue)=5 ? month(dvalue+7)!=month(dvalue) ? '<b><bgcolor=000000><fgcolor=FFFFFF>' ) + value";

865
I use the SelectDate method but the dates are not being highligted. What can I do
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.MarkTodayColor = var_Chart.BackColor;
	var_Chart.LevelCount = 2;
	var_Chart.SelectLevel = 1;
	var_Chart.set_SelectDate(Convert.ToDateTime("1/2/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true);
exg2antt1.EndUpdate();

864
Can I use ebn files to display the selected dates

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(2,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance.Add(1,"CP:2 0 -4 0 4");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.MarkTodayColor = var_Chart.BackColor;
	var_Chart.LevelCount = 2;
	var_Chart.MarkSelectDateColor32 = 0x1000000;
	var_Chart.SelectLevel = 1;
	var_Chart.set_SelectDate(Convert.ToDateTime("1/3/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true);
	var_Chart.set_SelectDate(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true);
exg2antt1.Columns.Add("Default");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 3"),"Task",Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 4"),"Task",Convert.ToDateTime("1/5/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

863
Can I use ebn files to display the selected dates

exg2antt1.BeginUpdate();
exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.MarkTodayColor = var_Chart.BackColor;
	var_Chart.LevelCount = 2;
	var_Chart.MarkSelectDateColor32 = 0x1000000;
	var_Chart.SelectLevel = 1;
	var_Chart.set_SelectDate(Convert.ToDateTime("1/3/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true);
exg2antt1.Columns.Add("Default");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 3"),"Task",Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

862
How can I change the color for selected dates to be solid

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.MarkTodayColor = var_Chart.BackColor;
	var_Chart.LevelCount = 2;
	var_Chart.MarkSelectDateColor32 = 0x7fff0000;
	var_Chart.SelectLevel = 1;
	var_Chart.set_SelectDate(Convert.ToDateTime("1/15/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true);
	var_Chart.set_SelectDate(Convert.ToDateTime("1/16/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true);
exg2antt1.EndUpdate();

861
How can I disable selecting dates when I click the chart's header
exg2antt1.Chart.AllowSelectDate = exontrol.EXG2ANTTLib.SelectDateEnum.exNoSelectDate;

860
Is there any option to specify which dates can be magnified or resized
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	var_Chart.ShowNonworkingDates = true;
	var_Chart.CondInsideZoom = "not(weekday(value) = 0 or weekday(value) = 6)";
exg2antt1.EndUpdate();

859
How can I change the width for a specified date time unit

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		exontrol.EXG2ANTTLib.InsideZoom var_InsideZoom = var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
			var_InsideZoom.Width = 32;
			var_InsideZoom.AllowInsideFormat = false;
exg2antt1.EndUpdate();

858
How can I disable the control's splitter so the user can't resize the list area
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exDisableSplitter | exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Chart.set_PaneWidth(false,60);

857
How can I disable the control's splitter so the user can't resize the chart area
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exDisableSplitter;
exg2antt1.Chart.set_PaneWidth(true,60);

856
How can I change the label for a specified unit

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	var_Chart.DefaultInsideZoomFormat.OwnerLabel = "<b><%d%></b> <%d2%>";
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		var_InsideZooms.DefaultWidth = 32;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllowInsideFormat = false;
exg2antt1.EndUpdate();

855
How can I bold the inside units

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	var_Chart.DefaultInsideZoomFormat.InsideLabel = "<b><%hh%></b>";
	var_Chart.InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

854
How can I change the scale unit when doing inside zoom ( the chart displays weeks, and we want week days )

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Label = "<%mmmm%>";
		var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exMonth;
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.Label = "<%ww%>";
		var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exWeek;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.OwnerLabel = "<font ;7><%mmm%> Week: <%ww%>";
		var_InsideZoomFormat.InsideLabel = "<font ;7><b><%d1%></b>";
		var_InsideZoomFormat.InsideUnit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		var_InsideZooms.Add(Convert.ToDateTime("2/3/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

853
How can I zoom or magnify the selected date to display the hours, from 8 to 8

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.InsideLabel = "H: <b><%hh%></b>";
		var_InsideZoomFormat.InsideUnit = exontrol.EXG2ANTTLib.UnitEnum.exHour;
		var_InsideZoomFormat.InsideCount = 8;
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

852
How can I zoom or magnify the selected date to display the hours

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

851
How can I change the foreground color for a time unit

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	var_Chart.DefaultInsideZoomFormat.ForeColor = Color.FromArgb(255,0,0);
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		var_InsideZooms.DefaultWidth = 18;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllowInsideFormat = false;
exg2antt1.EndUpdate();

850
How can I change the background color for a time unit, in the chart area

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	var_Chart.DefaultInsideZoomFormat.BackColorChart = Color.FromArgb(255,0,0);
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		var_InsideZooms.DefaultWidth = 18;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllowInsideFormat = false;
exg2antt1.EndUpdate();

849
How can I change the background color for a time unit, using EBN files

exg2antt1.BeginUpdate();
exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	var_Chart.DefaultInsideZoomFormat.BackColor32 = 0x1000000;
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		var_InsideZooms.DefaultWidth = 18;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllowInsideFormat = false;
exg2antt1.EndUpdate();

848
How can I change the background color for a time unit

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	var_Chart.DefaultInsideZoomFormat.BackColor = Color.FromArgb(255,0,0);
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		var_InsideZooms.DefaultWidth = 18;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllowInsideFormat = false;
exg2antt1.EndUpdate();

847
How can I display the column using currency format and enlarge the font for certain values
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Currency") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.FormatColumn = "len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");
	var_Items.AddItem("9.94");
	var_Items.AddItem("11.94");
	var_Items.AddItem("1000");

846
How can I highlight only parts of the cells
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.FormatColumn = "value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"Child 3");
	var_Items.set_ExpandItem(h,true);

845
How can I get the number of occurrences of a specified string in the cell
exg2antt1.Columns.Add("");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("occurrences") as exontrol.EXG2ANTTLib.Column);
	var_Column.ComputedField = "lower(%0) count 'o'";
	var_Column.FormatColumn = "'contains ' + value + ' of \\'o\\' chars'";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1 oooof the root");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"Child 3");
	var_Items.set_ExpandItem(h,true);

844
How can I display dates in my format
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Date") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.FormatColumn = "'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/21/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/22/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/13/2003",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/24/2004",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

843
How can I display dates in short format
(exg2antt1.Columns.Add("Date") as exontrol.EXG2ANTTLib.Column).FormatColumn = "shortdate(value)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/3/2003",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/4/2004",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

842
How can I display dates in long format
(exg2antt1.Columns.Add("Date") as exontrol.EXG2ANTTLib.Column).FormatColumn = "longdate(value)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/3/2003",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/4/2004",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

841
How can I display only the right part of the cell
exg2antt1.Columns.Add("");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Right") as exontrol.EXG2ANTTLib.Column);
	var_Column.ComputedField = "%0 right 2";
	var_Column.FormatColumn = "'\"' + value + '\"'";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"SChild 3");
	var_Items.set_ExpandItem(h,true);

840
How can I display only the left part of the cell
exg2antt1.Columns.Add("");
(exg2antt1.Columns.Add("Left") as exontrol.EXG2ANTTLib.Column).ComputedField = "%0 left 2";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"SChild 3");
	var_Items.set_ExpandItem(h,true);

839
How can I display true or false instead 0 and -1
(exg2antt1.Columns.Add("Boolean") as exontrol.EXG2ANTTLib.Column).FormatColumn = "value != 0 ? 'true' : 'false'";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(true);
	var_Items.AddItem(false);
	var_Items.AddItem(true);
	var_Items.AddItem(0);
	var_Items.AddItem(1);

838
Is there any option to print the columns section on each page

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("2/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkStartPos,0);
exg2antt1.EndUpdate();
// Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint();
	var_Print.Options = "ColumnsOnEveryPage=1";
	var_Print.PrintExt = (exg2antt1 as exontrol.EXG2ANTTLib.exg2antt);
	var_Print.Preview();

837
How do I print the control's content

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkStartPos,0);
exg2antt1.EndUpdate();
// Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint();
	var_Print.PrintExt = (exg2antt1 as exontrol.EXG2ANTTLib.exg2antt);
	var_Print.Preview();

836
How can I display icons or images instead numbers
exg2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Icons") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(1);
	var_Items.AddItem(2);
	var_Items.AddItem(3);

835
How can I display the column using currency
(exg2antt1.Columns.Add("Currency") as exontrol.EXG2ANTTLib.Column).FormatColumn = "currency(dbl(value))";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");
	var_Items.AddItem("0");
	var_Items.AddItem(5);
	var_Items.AddItem("10000.99");

834
How can I display the currency only for not empty cells
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Currency") as exontrol.EXG2ANTTLib.Column).ComputedField = "len(%0) ? currency(dbl(%0)) : ''";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");
	var_Items.AddItem("0");
	var_Items.set_ItemBackColor(var_Items.AddItem(null),Color.FromArgb(255,128,128));
	var_Items.AddItem("10000.99");

833
Is there a function to display the number of days between two date including the number of hours
(exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).Width = 32;
exg2antt1.Columns.Add("End");
(exg2antt1.Columns.Add("Duration") as exontrol.EXG2ANTTLib.Column).ComputedField = "((1:=int(0:= (date(%1)-date(%0)))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)" +
"*24))) != 0 ? =:1 + ' hour(s) ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem(Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(Convert.ToDateTime("2/22/2002 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("3/14/2002 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(Convert.ToDateTime("3/13/2003",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("4/11/2003 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

832
Is there a function to display the number of days between two date including the number of hours
exg2antt1.Columns.Add("Start");
exg2antt1.Columns.Add("End");
(exg2antt1.Columns.Add("Duration") as exontrol.EXG2ANTTLib.Column).ComputedField = "\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem(Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/14/2001 23:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(Convert.ToDateTime("2/22/2002 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("3/14/2002 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(Convert.ToDateTime("3/13/2003",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("4/11/2003 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

831
How can I display the number of days between two dates
exg2antt1.Columns.Add("Start");
exg2antt1.Columns.Add("End");
(exg2antt1.Columns.Add("Duration") as exontrol.EXG2ANTTLib.Column).ComputedField = "(date(%1)-date(%0)) + ' days'";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem(Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(Convert.ToDateTime("2/22/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("3/14/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(Convert.ToDateTime("3/13/2003",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,1,Convert.ToDateTime("4/11/2003",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

830
How can I get second part of the date
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("Second") as exontrol.EXG2ANTTLib.Column).ComputedField = "sec(date(%0))";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:10:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:01:22",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:23:01",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/14/2004 13:11:59",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

829
How can I get minute part of the date
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("Minute") as exontrol.EXG2ANTTLib.Column).ComputedField = "min(date(%0))";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:10:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:01:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:23:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/14/2004 13:11:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

828
How can I check the hour part only so I know it was afternoon
exg2antt1.ConditionalFormats.Add("hour(%0)>=12",null).Bold = true;
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("Hour") as exontrol.EXG2ANTTLib.Column).ComputedField = "hour(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/14/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

827
What about a function to get the day in the week, or days since Sunday
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("WeekDay") as exontrol.EXG2ANTTLib.Column).ComputedField = "weekday(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/14/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

826
Is there any function to get the day of the year or number of days since January 1st
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("Day since January 1st") as exontrol.EXG2ANTTLib.Column).ComputedField = "yearday(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/14/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

825
How can I display only the day of the date
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("Day") as exontrol.EXG2ANTTLib.Column).ComputedField = "day(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/11/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/22/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/13/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/14/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

824
How can I display only the month of the date
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("Month") as exontrol.EXG2ANTTLib.Column).ComputedField = "month(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/4/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

823
How can I get only the year part from a date expression
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("Year") as exontrol.EXG2ANTTLib.Column).ComputedField = "year(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/4/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

822
Can I convert the expression to date
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Date") as exontrol.EXG2ANTTLib.Column).ComputedField = "date(dbl(%0))";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("-1.98");
	var_Items.AddItem("30000.99");
	var_Items.AddItem("3561.23");
	var_Items.AddItem("1232.34");

821
Can I convert the expression to a number, double or float
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Number + 2") as exontrol.EXG2ANTTLib.Column).ComputedField = "dbl(%0)+2";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("-1.98");
	var_Items.AddItem("0.99");
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");

820
How can I display dates in long format
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("LongFormat") as exontrol.EXG2ANTTLib.Column).ComputedField = "longdate(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/4/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

819
How can I display dates in short format
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("ShortFormat") as exontrol.EXG2ANTTLib.Column).ComputedField = "shortdate(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/4/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

818
How can I display the time only of a date expression
exg2antt1.Columns.Add("Date");
(exg2antt1.Columns.Add("Time") as exontrol.EXG2ANTTLib.Column).ComputedField = "'time is:' + time(date(%0))";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("2/2/2002 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("3/3/2003 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(Convert.ToDateTime("4/4/2004 13:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

817
Is there any function to display currencies, or money formatted as in the control panel
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Currency") as exontrol.EXG2ANTTLib.Column).ComputedField = "currency(dbl(%0))";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(1.23);
	var_Items.AddItem(2.34);
	var_Items.AddItem(10000.99);

816
How can I convert the expression to a string so I can look into the date string expression for month's name
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Str") as exontrol.EXG2ANTTLib.Column).ComputedField = "str(%0) + ' AA'";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("-1.98");
	var_Items.AddItem("0.99");
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");

815
Can I display the absolute value or positive part of the number
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Abs") as exontrol.EXG2ANTTLib.Column).ComputedField = "abs(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("-1.98");
	var_Items.AddItem("0.99");
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");

814
Is there any function to get largest number with no fraction part that is not greater than the value
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Floor") as exontrol.EXG2ANTTLib.Column).ComputedField = "floor(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("-1.98");
	var_Items.AddItem("0.99");
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");

813
Is there any function to round the values base on the .5 value
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Round") as exontrol.EXG2ANTTLib.Column).ComputedField = "round(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("-1.98");
	var_Items.AddItem("0.99");
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");

812
How can I get or display the integer part of the cell
exg2antt1.Columns.Add("Number");
(exg2antt1.Columns.Add("Int") as exontrol.EXG2ANTTLib.Column).ComputedField = "int(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("-1.98");
	var_Items.AddItem("0.99");
	var_Items.AddItem("1.23");
	var_Items.AddItem("2.34");

811
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
(exg2antt1.Columns.Add("") as exontrol.EXG2ANTTLib.Column).FormatColumn = "proper(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("root");
	var_Items.InsertItem(h,null,"child child");
	var_Items.InsertItem(h,null,"child child");
	var_Items.InsertItem(h,null,"child child");
	var_Items.set_ExpandItem(h,true);

810
Is there any option to display cells in uppercase
(exg2antt1.Columns.Add("") as exontrol.EXG2ANTTLib.Column).FormatColumn = "upper(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"Chld 3");
	var_Items.set_ExpandItem(h,true);

809
Is there any option to display cells in lowercase
(exg2antt1.Columns.Add("") as exontrol.EXG2ANTTLib.Column).FormatColumn = "lower(%0)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"Chld 3");
	var_Items.set_ExpandItem(h,true);

808
How can I mark the cells that has a specified type, ie strings only
exg2antt1.ConditionalFormats.Add("type(%0) = 8",null).ForeColor = Color.FromArgb(255,0,0);
exg2antt1.Columns.Add("");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,2);
	var_Items.InsertItem(h,null,"Chld 3");
	var_Items.set_ExpandItem(h,true);

807
How can I bold the items that contains data or those who displays empty strings
exg2antt1.ConditionalFormats.Add("not len(%1)=0",null).Bold = true;
exg2antt1.Columns.Add("C1");
exg2antt1.Columns.Add("C2");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	int hC = var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_CellValue(hC,1,"1");
	var_Items.InsertItem(h,null,"Child 3");
	var_Items.set_ExpandItem(h,true);

806
Can I change the background color for items or cells that contains a specified string
exg2antt1.ConditionalFormats.Add("%0 contains 'hi'",null).BackColor = Color.FromArgb(255,0,0);
exg2antt1.Columns.Add("");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"Chld 3");
	var_Items.set_ExpandItem(h,true);

805
Is there any option to change the fore color for cells or items that ends with a specified string
exg2antt1.ConditionalFormats.Add("%0 endwith '22'",null).ForeColor = Color.FromArgb(255,0,0);
exg2antt1.Columns.Add("");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 1.22");
	var_Items.InsertItem(h,null,"Child 2.22");
	var_Items.set_ExpandItem(h,true);

804
How can I highlight the cells or items that starts with a specified string
exg2antt1.ConditionalFormats.Add("%0 startwith 'C'",null).Underline = true;
exg2antt1.Columns.Add("");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"SChild 3");
	var_Items.set_ExpandItem(h,true);

803
How can I change the background color or the visual appearance using ebn for a particular column
exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Column 1");
	(var_Columns.Add("Column 2") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exHeaderBackColor,16777216);
	(var_Columns.Add("Column 3") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exHeaderBackColor,16777471);
	var_Columns.Add("Column 4");

802
How can I change the foreground color for a particular column
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Column 1");
	(var_Columns.Add("Column 2") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exHeaderForeColor,8439039);
	var_Columns.Add("Column 3");

801
How can I change the background color for a particular column
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Column 1");
	(var_Columns.Add("Column 2") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exHeaderBackColor,8439039);
	var_Columns.Add("Column 3");